--- qemu-1.3.0.org/linux-user/mmap.c	2012-12-09 18:21:47.509742992 +0000
+++ qemu-1.3.0/linux-user/mmap.c	2012-12-10 05:25:58.769544980 +0000
@@ -25,6 +25,7 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/mman.h>
+#include <sys/syscall.h>
 #include <linux/mman.h>
 #include <linux/unistd.h>
 
